package br.com.massai.view.enums;

public enum CoreError implements GenericCore {

	ERROR_DUPLICATE("error.duplicate"),
	ERROR_UNDEFINED_PROPERTY("error.undefined.property"),
	ERROR_SAVE("error.save"),
	ERROR_UPDATE("error.update"),
	ERROR_DELETE("error.delete"),
	ERROR_DELETE_RESTRICTION("error.delete.restriction"),
	ERROR_INVALID_PASSWORD("error.invalid.password"),
	ERROR_SEND_EMAIL("error.send.email"),
	ERROR_GENERATE_REPORT("error.generate.report"),
	ERROR_INEXISTENT_RECORD("error.inexistent.record"),
	ERROR_SYSTEM("error.system"),
	ERROR_WRITE_FILE("error.write.file"),
	ERROR_COPY_FILE("error.copy.file"),
	ERROR_LOAD_FILE("error.load.file"),
	ERROR_UNZIP_FILE("error.unzip.file"),
	ERROR_REQUIRED_FIELD("error.required.field"),
	ERROR_UNEXPECTED("error.unexpected"),
	ERROR_GET_RECORD("error.get.record"),
	ERROR_ILLEGAL_ACESS("error.illegal.acess"),
	ERROR_ILLEGAL_ARGUMENT("error.illegal.argument");

	private String code;

	private CoreError(String codigoErro) {
		this.code = codigoErro;
	}

	@Override
	public String getCode() {
		return this.code;
	}
}